package com.movitech.mobile.cz.base.purchase.mapper.ext;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.movitech.mobile.cz.base.purchase.entity.PSpPlanDetail;
import com.movitech.mobile.cz.base.purchase.entity.ext.ExtPSpPlanDetail;
import com.movitech.mobile.cz.base.purchase.entity.ext.StrategicPurchaseRequiredFindRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 战略采购规划-需求明细 Mapper 接口
 * </p>
 *
 * @author Movitech Mobile
 * @since 2018-03-15
 */
@Component
@Mapper
public interface ExtPSpPlanDetailMapper extends BaseMapper<PSpPlanDetail> {

    List<ExtPSpPlanDetail> findByPlanId(@Param("strategicPurchasePlanId") String strategicPurchasePlanId);
    List<PSpPlanDetail> findListsByYear(@Param("year") Integer year);
    List<ExtPSpPlanDetail> findByRequestEntity(StrategicPurchaseRequiredFindRequest strategicPurchaseRequiredFindRequest);
    Integer findExtCount(StrategicPurchaseRequiredFindRequest strategicPurchaseRequiredFindRequest);
}
